package com.contactbook.web.client.service;

import com.contactbook.web.client.dto.AccountDTO;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("account")
public interface AccountService extends RemoteService {
	
	public AccountDTO login(String login, String password);
	
	public void logout();

	public AccountDTO create(AccountDTO accountDTO);
	
	public void delete();

	public void update(AccountDTO accountDTO, String login, String password);
}
